package com.atguigu.jinx.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author steve
 * @since 2025-08-27
 */
@Getter
@Setter
@ToString
@TableName("user_balance")
public class UserBalance implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 外键绑定user_id
     */
    @TableField("user_id")
    private Long userId;

    @TableField("alipay_account")
    private String alipayAccount;

    @TableField("wechatpay_account")
    private String wechatpayAccount;

    /**
     * 用户的余额
     */
    @TableField("balance")
    private BigDecimal balance;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;
}
